 package org.lanzier.common.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.lanzier.common.dao.IJdbcDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author lansb
 * 公用controller
 * 
 */
@Controller
@RequestMapping("/ajax")
public class AjaxController {
	@Autowired
	public IJdbcDao jdbcDao;
	@RequestMapping(value = "/{id}", method = RequestMethod.GET)
	public  @ResponseBody Object ajax(@PathVariable
			String id,@RequestParam String type, HttpServletRequest request, HttpServletResponse response) throws Exception {
		return "abcd";
	}
}
